using AppToolKit.Model.Validation.Validator;
using System;
namespace AppToolKit.Model.Validation.Attribute
{
	public class MinMaxRuleAttribute : RuleAttribute
	{
		public object min_;
		public object max_;
		public MinMaxRuleAttribute(object min, object max) : base(ValidateBehavior.Both)
		{
		}
		public override IValidator CreateVaildator()
		{
			return new MaxMinRuleValidator(this.min_, this.max_);
		}
	}
}
